import base from './base'
import axios from './http'
import qs from 'qs'

const index = {
  indexSwiper (params) {
    return axios.post(`${base.pro}/api/carousel/collect.html`, qs.stringify(params))
  },
  indexRecommend (params) {
    return axios.get(`${base.pro}/api/seller/mainRecommend.html`, {
      params: params
    })
  },
  getArticle (params) {
    return axios.get(`${base.pro}/api/article/collect`, {params})
  },
  getArticleDetail (params) {
    return axios.get(`${base.pro}/api/article/detail`, {params})
  }
}
export default index
